package com.dang.edu.controller;


import com.dang.edu.model.bo.RegisterDto;
import com.dang.edu.model.vo.R;
import com.dang.edu.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * (User)表控制层
 *
 * @author makejava
 * @since 2023-08-17 17:31:20
 */
@RestController
@RequestMapping("user")
@Api(tags = "用户操作")
public class UserController{
    /**
     * 服务对象
     */
    @Resource
    private UserService service;

    @PostMapping("/register")
    public R register(RegisterDto dto){
        return service.register(dto);
    }


}

